package com.lg.spring.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

/**
 * 添加 该注解：@Configuration  表明 该类会被springboot 加载，
 * 并且会自动装配到 spring容器中
 * @author by Mr. Li 2020/6/4 14:48
 */
@Configuration
@Lazy
public class MyConfig {

	@Bean
	public MyConfigBean myConfigBean() {
		return new MyConfigBean();
	}
}
